package cn.psvmc.cxzapi.task;

import cn.psvmc.cxzapi.service.order.TOrderDeliveryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author YWX
 * @Classname DeliveryTask
 * @Description 物流定时任务
 * @Date 2024/11/11 22:41
 **/
@Slf4j
@Component
public class DeliveryTask {
    @Resource
    private TOrderDeliveryService orderDeliveryService;

    /**
     * @Description 根据物流签收时间更新订单租期
     * @Date 2024/11/11 23:38
     * @Author YWX
     * @Param []
     * @Return void
     **/
    /*@Async("threadPoolTaskScheduler")
    @Scheduled(cron = "${cron.updateOrderLease}")
    public void updateOrderLease() {
        orderDeliveryService.updateOrderLease(0);
    }*/
}
